﻿using System;
using AAPL.Common;
using System.Collections.Generic;


namespace AAPL.Common.DataShapes
{
    public class BlogPostSearchResult
    {
        // BlogPost Fields
        public Guid PostGuid { get; set; }
        public int PostId { get; set; } 
        public DateTime CreatedUtc { get; set; }
        public DateTime ModifiedUtc { get; set; }
        public DateTime PostedUtc { get; set; }
        public Guid BlogGuid { get; set; }
        public string PostUrl { get; set; }
        public string PostTitle { get; set; }
        public string PostSummary { get; set; }
        public string PostBody { get; set; }
        public string AuthorName { get; set; }
        public int Score { get; set; } 
        // BlogProfile Fields
        public int BlogId {get; set;}
        public string BlogName {get; set;}
        public string BlogUrl {get; set;}
        public string Image {get; set;}
        // BlogCategoryList
        public List<Category> Categories {get;set;}


        public BlogPostSearchResult()
        {
            PostGuid = NullValues.NullGuid;
            PostId = NullValues.NullInt;
            CreatedUtc = NullValues.NullDateTime;
            ModifiedUtc = NullValues.NullDateTime;
            PostedUtc = NullValues.NullDateTime;
            BlogGuid = NullValues.NullGuid;
            PostUrl = NullValues.NullString;
            PostTitle = NullValues.NullString;
            PostSummary = NullValues.NullString;
            PostBody = NullValues.NullString;
            AuthorName = NullValues.NullString;
            Score = 0;

            BlogId = NullValues.NullInt;
            BlogName = NullValues.NullString;
            BlogUrl = NullValues.NullString;

            Categories = null;
        }
    }
}
